﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000073 RID: 115
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AGBKCIIINEL : IMessage<AGBKCIIINEL>, IMessage, IEquatable<AGBKCIIINEL>, IDeepCloneable<AGBKCIIINEL>, IBufferMessage
	{
		// Token: 0x1700016C RID: 364
		// (get) Token: 0x06000510 RID: 1296 RVA: 0x0000F43B File Offset: 0x0000D63B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AGBKCIIINEL> Parser
		{
			get
			{
				return AGBKCIIINEL._parser;
			}
		}

		// Token: 0x1700016D RID: 365
		// (get) Token: 0x06000511 RID: 1297 RVA: 0x0000F442 File Offset: 0x0000D642
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AGBKCIIINELReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700016E RID: 366
		// (get) Token: 0x06000512 RID: 1298 RVA: 0x0000F454 File Offset: 0x0000D654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AGBKCIIINEL.Descriptor;
			}
		}

		// Token: 0x06000513 RID: 1299 RVA: 0x0000F45B File Offset: 0x0000D65B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AGBKCIIINEL()
		{
		}

		// Token: 0x06000514 RID: 1300 RVA: 0x0000F470 File Offset: 0x0000D670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AGBKCIIINEL(AGBKCIIINEL other) : this()
		{
			this.subAffixList_ = other.subAffixList_.Clone();
			this.tid_ = other.tid_;
			this.exp_ = other.exp_;
			this.mainAffixId_ = other.mainAffixId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000515 RID: 1301 RVA: 0x0000F4D5 File Offset: 0x0000D6D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AGBKCIIINEL Clone()
		{
			return new AGBKCIIINEL(this);
		}

		// Token: 0x1700016F RID: 367
		// (get) Token: 0x06000516 RID: 1302 RVA: 0x0000F4DD File Offset: 0x0000D6DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RelicAffix> SubAffixList
		{
			get
			{
				return this.subAffixList_;
			}
		}

		// Token: 0x17000170 RID: 368
		// (get) Token: 0x06000517 RID: 1303 RVA: 0x0000F4E5 File Offset: 0x0000D6E5
		// (set) Token: 0x06000518 RID: 1304 RVA: 0x0000F4ED File Offset: 0x0000D6ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Tid
		{
			get
			{
				return this.tid_;
			}
			set
			{
				this.tid_ = value;
			}
		}

		// Token: 0x17000171 RID: 369
		// (get) Token: 0x06000519 RID: 1305 RVA: 0x0000F4F6 File Offset: 0x0000D6F6
		// (set) Token: 0x0600051A RID: 1306 RVA: 0x0000F4FE File Offset: 0x0000D6FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x17000172 RID: 370
		// (get) Token: 0x0600051B RID: 1307 RVA: 0x0000F507 File Offset: 0x0000D707
		// (set) Token: 0x0600051C RID: 1308 RVA: 0x0000F50F File Offset: 0x0000D70F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainAffixId
		{
			get
			{
				return this.mainAffixId_;
			}
			set
			{
				this.mainAffixId_ = value;
			}
		}

		// Token: 0x17000173 RID: 371
		// (get) Token: 0x0600051D RID: 1309 RVA: 0x0000F518 File Offset: 0x0000D718
		// (set) Token: 0x0600051E RID: 1310 RVA: 0x0000F520 File Offset: 0x0000D720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600051F RID: 1311 RVA: 0x0000F529 File Offset: 0x0000D729
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AGBKCIIINEL);
		}

		// Token: 0x06000520 RID: 1312 RVA: 0x0000F538 File Offset: 0x0000D738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AGBKCIIINEL other)
		{
			return other != null && (other == this || (this.subAffixList_.Equals(other.subAffixList_) && this.Tid == other.Tid && this.Exp == other.Exp && this.MainAffixId == other.MainAffixId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000521 RID: 1313 RVA: 0x0000F5B8 File Offset: 0x0000D7B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.subAffixList_.GetHashCode();
			if (this.Tid != 0U)
			{
				num ^= this.Tid.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this.MainAffixId != 0U)
			{
				num ^= this.MainAffixId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000522 RID: 1314 RVA: 0x0000F650 File Offset: 0x0000D850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000523 RID: 1315 RVA: 0x0000F658 File Offset: 0x0000D858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000524 RID: 1316 RVA: 0x0000F664 File Offset: 0x0000D864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Tid != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Tid);
			}
			this.subAffixList_.WriteTo(ref output, AGBKCIIINEL._repeated_subAffixList_codec);
			if (this.Exp != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Exp);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Level);
			}
			if (this.MainAffixId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MainAffixId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000525 RID: 1317 RVA: 0x0000F708 File Offset: 0x0000D908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.subAffixList_.CalculateSize(AGBKCIIINEL._repeated_subAffixList_codec);
			if (this.Tid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Tid);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this.MainAffixId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainAffixId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000526 RID: 1318 RVA: 0x0000F7A4 File Offset: 0x0000D9A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AGBKCIIINEL other)
		{
			if (other == null)
			{
				return;
			}
			this.subAffixList_.Add(other.subAffixList_);
			if (other.Tid != 0U)
			{
				this.Tid = other.Tid;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			if (other.MainAffixId != 0U)
			{
				this.MainAffixId = other.MainAffixId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000527 RID: 1319 RVA: 0x0000F82D File Offset: 0x0000DA2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000528 RID: 1320 RVA: 0x0000F838 File Offset: 0x0000DA38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 26U)
				{
					if (num == 8U)
					{
						this.Tid = input.ReadUInt32();
						continue;
					}
					if (num == 26U)
					{
						this.subAffixList_.AddEntriesFrom(ref input, AGBKCIIINEL._repeated_subAffixList_codec);
						continue;
					}
				}
				else
				{
					if (num == 32U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.MainAffixId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040001D0 RID: 464
		private static readonly MessageParser<AGBKCIIINEL> _parser = new MessageParser<AGBKCIIINEL>(() => new AGBKCIIINEL());

		// Token: 0x040001D1 RID: 465
		private UnknownFieldSet _unknownFields;

		// Token: 0x040001D2 RID: 466
		public const int SubAffixListFieldNumber = 3;

		// Token: 0x040001D3 RID: 467
		private static readonly FieldCodec<RelicAffix> _repeated_subAffixList_codec = FieldCodec.ForMessage<RelicAffix>(26U, RelicAffix.Parser);

		// Token: 0x040001D4 RID: 468
		private readonly RepeatedField<RelicAffix> subAffixList_ = new RepeatedField<RelicAffix>();

		// Token: 0x040001D5 RID: 469
		public const int TidFieldNumber = 1;

		// Token: 0x040001D6 RID: 470
		private uint tid_;

		// Token: 0x040001D7 RID: 471
		public const int ExpFieldNumber = 4;

		// Token: 0x040001D8 RID: 472
		private uint exp_;

		// Token: 0x040001D9 RID: 473
		public const int MainAffixIdFieldNumber = 14;

		// Token: 0x040001DA RID: 474
		private uint mainAffixId_;

		// Token: 0x040001DB RID: 475
		public const int LevelFieldNumber = 13;

		// Token: 0x040001DC RID: 476
		private uint level_;
	}
}
